<?php
class doom_factory_log {
    
    public function getLog($type, $extData = null) {
    
        $logClazz = join('_', explode('.', $type));
    
        $log = new $logClazz($extData);
        
        $engineClazz = $log->getEngineClazz();
        $engine = new $engineClazz($log->getEngineConfig());
        
        $log->_engine = $engine;
    
        return $log;
    }
}